<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
	<title>鼠标移入酷炫展开效果</title>
	<link rel="stylesheet" type="text/css" href="css/index.css">
</head>
<body>
<div class="wrap">
   <div>这是个导航栏</div>
</div>
<div class="nav-main">
<div class="nav-box">
<div class="nav">
  <ul class="nav-ul">
  	<li><a href="#" class="home"><span>首页</span></a></li>
  	<li><a href="#" class="develop"><span>H5开发</span></a></li>
  	<li><a href="#" class="wechat"><span>微信推广</span></a></li>
  	<li><a href="#" class="case"><span>项目案例</span></a></li>
  	<li><a href="#" class="news"><span>信息资讯</span></a></li>
  	<li><a href="#" class="contact"><span>关于我们</span></a></li>
  </ul>
</div>
<div class="nav-slide">
    <div class="nav-slide-o"></div>
    <div class="nav-slide-o">
    	<ul>
    		<li><a href="#"><span>微信开发</span></a></li>
    		<li><a href="#"><span>微信开发</span></a></li>
    		<li><a href="#"><span>微信开发</span></a></li>
    		<li><a href="#"><span>微信开发</span></a></li>
    		<li><a href="#"><span>微信开发</span></a></li>
    		<li><a href="#"><span>微信开发</span></a></li>
    		<li><a href="#"><span>微信开发</span></a></li>
    		<li><a href="#"><span>微信开发</span></a></li>
    		<li><a href="#"><span>微信开发</span></a></li>
    		<li><a href="#"><span>微信开发</span></a></li>
    	</ul>
    </div>
    <div class="nav-slide-o">
    	<ul>
    		<li><a href="#"><span>微信关注</span></a></li>
    		<li><a href="#"><span>微信关注</span></a></li>
    		<li><a href="#"><span>微信关注</span></a></li>
    		<li><a href="#"><span>微信关注</span></a></li>
    		<li><a href="#"><span>微信关注</span></a></li>
    		<li><a href="#"><span>微信关注</span></a></li>
    		<li><a href="#"><span>微信关注</span></a></li>
    		<li><a href="#"><span>微信关注</span></a></li>
    	</ul>
    </div>
    <div class="nav-slide-o">
    	<ul>
    		<li><a href="#"><span>网站设计</span></a></li>
    		<li><a href="#"><span>网站设计</span></a></li>
    		<li><a href="#"><span>网站设计</span></a></li>
    		<li><a href="#"><span>网站设计</span></a></li>
    		<li><a href="#"><span>网站设计</span></a></li>
    		<li><a href="#"><span>网站设计</span></a></li>
    		<li><a href="#"><span>网站设计</span></a></li>
    		<li><a href="#"><span>网站设计</span></a></li>
    		<li><a href="#"><span>网站设计</span></a></li>
    	</ul>
    </div>
    <div class="nav-slide-o">
    	<ul>
    		<li><a href="#"><span>企业建站</span></a></li>
    		<li><a href="#"><span>企业建站</span></a></li>
    		<li><a href="#"><span>企业建站</span></a></li>
    		<li><a href="#"><span>企业建站</span></a></li>
    		<li><a href="#"><span>企业建站</span></a></li>
    		<li><a href="#"><span>企业建站</span></a></li>
    		<li><a href="#"><span>企业建站</span></a></li>
    		<li><a href="#"><span>企业建站</span></a></li>
    		<li><a href="#"><span>企业建站</span></a></li>
    	</ul>
    </div>
</div>
</div>
</div>

<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script type="text/javascript">
	$(function(){
	var thisTime;
	$('.nav-ul li').mouseleave(function(even){
			thisTime	=	setTimeout(thisMouseOut,1000);
	})

	$('.nav-ul li').mouseenter(function(){
		clearTimeout(thisTime);
		var thisUB	=	$('.nav-ul li').index($(this));
		if($.trim($('.nav-slide-o').eq(thisUB).html()) != "")
		{
			$('.nav-slide').addClass('hover');
			$('.nav-slide-o').hide();
			$('.nav-slide-o').eq(thisUB).show();
		}
		else{
			$('.nav-slide').removeClass('hover');
		}
		
	})
	
	function thisMouseOut(){
		$('.nav-slide').removeClass('hover');
	}
	 
	$('.nav-slide').mouseenter(function(){
		clearTimeout(thisTime);
		$('.nav-slide').addClass('hover');
	})
	$('.nav-slide').mouseleave(function(){
		$('.nav-slide').removeClass('hover');
	})

})
</script>
</body>
</html>